package com.easipass.business.repository;
import com.easipass.business.po.MyNotesPO;
import com.easipass.plugin.hibernate.repository.EpRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MyNoteDao extends EpRepository<MyNotesPO, String> {

    List<MyNotesPO> getAllByStatusNot(Integer status);

    @Query(value = "select * from MY_NOTES where STATUS != 9 order by TIME_STAMP desc", nativeQuery = true )
    List<MyNotesPO> getAll(Integer status);

}
